#include "widget.h"
#include "ui_widget.h"
#include<QLabel>
Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
}

Widget::~Widget()
{
    delete ui;
}


void Widget::on_up_clicked()
{
    QRect a=ui->tar666->geometry();
   ui->tar666->setGeometry(a.x(),a.y()-10,a.width(),a.height());
}



void Widget::on_left_clicked()
{
    QRect a=ui->tar666->geometry();
   ui->tar666->setGeometry(a.x()-10,a.y(),a.width(),a.height());
}

void Widget::on_right_clicked()
{
    QRect a=ui->tar666->geometry();
   ui->tar666->setGeometry(a.x()+10,a.y(),a.width(),a.height());

}

void Widget::on_down_clicked()
{
    QRect a=ui->tar666->geometry();
   ui->tar666->setGeometry(a.x(),a.y()+10,a.width(),a.height());
}
